﻿@page "/imageSetting"
@namespace SwashbucklerDiary.Pages
@inherits ImportantComponentBase

<MyAppBar>
    <MButton Icon="true"
             OnClick="NavigateToBack">
        <MIcon>
            mdi-arrow-left
        </MIcon>
    </MButton>

    <MToolbarTitle Class="font-weight-bold">
        @(I18n.T("Setting.Display.Diary.Image.Name"))
    </MToolbarTitle>
    <MSpacer></MSpacer>
    <MButton Icon="true"
             OnClick="()=>ShowConfimDelete=true">
        <MIcon>
            mdi-delete-outline
        </MIcon>
    </MButton>
</MyAppBar>

<ScrollContainer>
    <ImageResourceCardList Value="ImageResources"></ImageResourceCardList>
</ScrollContainer>

<DeleteDialog @bind-Value="ShowConfimDelete"
              Title="@(I18n.T("Share.Delete"))"
              Content="@(I18n.T("Setting.Display.Diary.Image.DeleteUnusedImage"))"
              OnOK="DeleteUnusedImageResources">
</DeleteDialog>